// component/ServiceItem/ServiceItem.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    service_data: {type: Object}
  },

  /**
   * 组件的初始数据
   */
  data: {
    show: false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    change(e) {
      console.log('current index has changed', e.detail)
    },
    delete(e) {
        console.log('delete', e.detail)
    },
    show() {
        // console.log('component hide')
        setTimeout(() => {
          console.log('component show')
          this.setData({
              show: this.data.show?false:true
          })
        }, 50)
    },
  }//methods end
})
